#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->lineEdit->setStyleSheet("background-color: green;");
    ui->lineEdit_2->setStyleSheet("background-color: green;");
    ui->lineEdit_3->setStyleSheet("background-color: green;");
    ui->lineEdit_3->setStyleSheet("background-color: green;");
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background-color: rgb(240,240,240);");

    ui->textBrowser->setStyleSheet("background-color: white; color: black");
    ui->pushButton_dark->setStyleSheet("color: black");
    ui->pushButton_light->setStyleSheet("color: black");

}

void Widget::on_pushButton_dark_clicked()
{
    this->setStyleSheet("background-color: black;");

    ui->textBrowser->setStyleSheet("background-color: black; color: white");
    ui->pushButton_dark->setStyleSheet("color: white");
    ui->pushButton_light->setStyleSheet("color: white");
}
